package com.qyhl.webtv.module_live.serviceimpl;

import android.content.Context;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.qyhl.webtv.basiclib.base.BaseFragment;
import com.qyhl.webtv.commonlib.constant.ServicePathConstant;
import com.qyhl.webtv.commonlib.service.LiveService;
import com.qyhl.webtv.module_live.teletext.TeleTextFragment;
import com.qyhl.webtv.module_live.teletext.list.LiveListFragment;
import com.qyhl.webtv.module_live.teletext.mixlive.MixLiveListFragment;
import com.qyhl.webtv.module_live.teletext.nanbu.NanBuLiveListFragment;
import com.qyhl.webtv.module_live.teletext.newlivelist.NewLiveListFragment;
import com.qyhl.webtv.module_live.teletext.sandulive.SDLiveFragment;

/**
 * 直播服务
 *
 * @author helin
 * @date 2019年6月4日11:43:48
 */
@Route(path = ServicePathConstant.LIVE_SERVICE)
public class LiveServiceImpl implements LiveService {
    @Override
    public BaseFragment getLiveListFragment(String title) {
        return LiveListFragment.newInstance(title);
    }

    @Override
    public BaseFragment getTeleTextFragment(String title) {
        return TeleTextFragment.newInstance(title);
    }

    @Override
    public BaseFragment getMixLiveListFragment(String title, String type) {
        return MixLiveListFragment.newInstance(title, type);
    }

    @Override
    public BaseFragment getNewLiveListFragment() {
        return NewLiveListFragment.newInstance();
    }

    @Override
    public BaseFragment getNewLiveListFragment(String menuName, boolean b) {
        return NewLiveListFragment.newInstance(menuName, b);
    }

    @Override
    public BaseFragment getSanDuLiveFragment(String sectionId) {
        return SDLiveFragment.newInstance(sectionId);
    }

    @Override
    public BaseFragment getNanBuLiveFragment() {
        return NanBuLiveListFragment.newInstance();
    }

    @Override
    public void init(Context context) {

    }
}
